home *** CD-ROM | disk | FTP | other *** search
/ PC Answers 1998 January / PC Answers Issue 49 Cover CD January 1998.iso / Apps / Director / DATA.Z / Scriptable Authoring.dir / Scripts_49_Add or delete the float from the parade.ls < prev    next >
Encoding:
Text File  |  1997-05-10  |  656 b   |  23 lines

  1. global gPuppetList, gParadePartsList
  2.  
  3. on mouseUp
  4.   PlaySound("ButtonClick")
  5.   set currentMember to the number of the member of sprite the floatButton of gPuppetList
  6.   cursor(4)
  7.   repeat with N = 4 to 8
  8.     set the visible of sprite N to 0
  9.   end repeat
  10.   if the name of member currentMember contains "add" then
  11.     CreateFloatAnimation()
  12.     set the memberNum of sprite the floatButton of gPuppetList to currentMember + 1
  13.   else
  14.     DeleteFloatFromScore()
  15.     set the memberNum of sprite the floatButton of gPuppetList to currentMember - 1
  16.   end if
  17.   repeat with N = 4 to 8
  18.     set the visible of sprite N to 1
  19.   end repeat
  20.   cursor(-1)
  21.   updateStage()
  22. end
  23.